package structures;

import java.util.ArrayList;
import java.util.List;

public class Table {
	private Lock block;
	private List<Page> pages;
	
	public Table(){
		pages = new ArrayList<Page>();
	}
	
	public Lock getBlock() {
		return block;
	}
	public void setBlock(Lock block) {
		this.block = block;
	}
	public List<Page> getPages() {
		return pages;
	}
	public void setPages(List<Page> pages) {
		this.pages = pages;
	}
	
	public void addPage(Page p){
		pages.add(p);
	}
}
